package com.demo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.struts.BaseAction;
import com.struts.BaseActionForm;

public class DemoAction implements BaseAction {

	public String execute(HttpServletRequest req, HttpServletResponse res,BaseActionForm form) {
		DemoForm demo=(DemoForm) form;
		if(demo.getName().equals("ywh")){
			return "success";
		}
		return "fail";
	}

}
